package clientApp.utils;

import java.awt.CardLayout;
import java.util.ArrayList;

import javax.swing.JPanel;

import communication.client.PlayerInteractionManager;
import communication.common.LoggedPlayers;
import communication.server.MasterInteractionManager;

import clientApp.CreateGameRoom;
import clientApp.GameMenu;
import clientApp.InitialMenu;
import clientApp.MyCharacters;
import clientApp.MyMonsters;
import clientApp.RPG_Workstation;

/**
 *
 * @author Gabriel
 */
@SuppressWarnings("serial")
public class RPG_Workstation_Container extends javax.swing.JPanel {

	public CardLayout panels;
	
	public PlayerInteractionManager player;
	public MasterInteractionManager master;
	
	public LoggedPlayers loggedPlayers = null;
	
    /** Creates new form RPG_Workstation */
    public RPG_Workstation_Container(RPG_Workstation frame) {    	
    	loggedPlayers = new LoggedPlayers();
    	
        panels = new CardLayout();
        this.setLayout(panels);
    	ArrayList<JPanel> cards = new ArrayList<JPanel>();
    	cards.add(new GameMenu(this, frame));
    	add(new MyCharacters(frame, this), "MyCharacters");
    	add(new MyMonsters(frame, this), "MyMonsters");
    	add(new InitialMenu(this, frame), "InitialMenu");	
     	add(new CreateGameRoom(this, frame), "CreateRoom");
    	add(cards.get(0), "GameMenu");
        
    }    
}
